package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CursorSpecification {

    private int beginIndex;
    private int endIndex;
    private QueryExpression queryExpression;
    private OrderByClause orderByClause;
    private UpdatabilityClause updatabilityClause;

    public CursorSpecification(int endIndex,
                               QueryExpression queryExpression,
                               OrderByClause orderByClause,
                               UpdatabilityClause updatabilityClause) {
        this.beginIndex = queryExpression.getBeginIndex();
        this.endIndex = endIndex;
        this.queryExpression = queryExpression;
        this.orderByClause = orderByClause;
        this.updatabilityClause = updatabilityClause;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public QueryExpression getQueryExpression() {
        return queryExpression;
    }

    public OrderByClause getOrderByClause() {
        return orderByClause;
    }

    public UpdatabilityClause getUpdatabilityClause() {
        return updatabilityClause;
    }

}
